﻿@{
    ViewBag.Title = "材料运行单管理-档案";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<link href="~/Content/css/MaterialOperationDetails.css" rel="stylesheet" />
<script type="text/javascript">
    $(function () {
        Index.init();
    });

    var Index = {
        jsonData: @Html.Raw(ViewData["jsonData"].ToString()),
        init: function () {
            with (Index) {
                initControl();

                initData();

                $('select').bindSelect();
            }
        },
        initData: function () {
            for(var idx in Index.jsonData){
                $("#{0}".format(idx)).val(Index.jsonData[idx]);
            }

            $("#MaintainStatus").val(Index.jsonData["MaintainStatus"]);
        },
        initControl:function(){
            $.renderMy97Datepicker();

            $.loadDataForSelect("编辑,发布,作废".split(','), $("#MaintainStatus"));

            $.loadDataForSelect("未分解,已分解".split(','), $("#DecomposeState"));

            var cols = "否,是".split(","),ids="isJQ,MaintainStatus1".split(",");

            ids.forEach(function(id){
                $.loadDataForSelect(cols, $("#{0}".format(id)));
            });
            
            $.loadDataForSelect({"K":"块料","T":"条料","L":"落料","Y":"异形"}, $("#RoughsType"));

            $.loadDataForSelect({"A":"是","":"否"}, $("#FiberDirection"));

        }
    };
</script>

<div class="layout" id="layout">
    <header>
        <h1>运行单</h1>
        <aside>
            <img alt="bar_code" src='/Common/GetBarCode?text=@ViewData["MatNo"].ToString()&width=300&height=90' />
        </aside>
        <aside>
            <img alt="qr_code" src='/Common/GetQrcode?text=@ViewData["MatNo"].ToString()' />
        </aside>
    </header>
    <div class="line">
        <div class="item">
            <label>编制日期</label>
            <div class="input_c">
                <input id="InputDate" type="text" class="form-control required" my97date="yyyy-MM-dd" />
            </div>
        </div>
        <div class="item">
            <label>上线日期</label>
            <div class="input_c">
                <input id="ProductDate" type="text" class="form-control required" my97date="yyyy-MM-dd" />
            </div>
        </div>
        <div class="item">
            <label>发单日期</label>
            <div class="input_c">
                <input id="FAuditingDate" type="text" class="form-control required" my97date="yyyy-MM-dd" />
            </div>
        </div>
        <div class="item">
            <label>车型编号</label>
            <div class="input_c">
                <input id="FCXBH" type="text" class="form-control required" />
            </div>
        </div>
    </div>
    <div class="table_c">
        <table>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>5</td>
                <td>6</td>
                <td>7</td>
                <td>8</td>
                <td>9</td>
                <td>10</td>
                <td>11</td>
                <td>12</td>
                <td>13</td>
                <td>14</td>
                <td>15</td>
                <td>16</td>
                <td>17</td>
                <td>18</td>
                <td>19</td>
                <td>20</td>
                <td>21</td>
            </tr>
            <tr>
                <td rowspan="12" class="center">
                    <label>材料计划员填写</label></td>
                <td colspan="3">零件编码</td>
                <td colspan="7">
                    <input type="text" id="ProductionNO" class="txt_line form-control required" /></td>
                <td>分解状态</td>
                <td colspan="3">剪切规格</td>
                <td colspan="2">毛坯类别</td>
                <td>纤维方向</td>
                <td colspan="3">一个零件毛坯尺寸	</td>
            </tr>
            <tr>
                <td colspan="3">零件名称</td>
                <td colspan="7">
                    <input type="text" id="FProductionName" class="txt_line form-control required" /></td>
                <td>
                    <select id="DecomposeState" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>
                </td>
                <td colspan="3">
                    <input type="text" id="MaterialSizes_J" class="txt_line form-control required" /></td>
                <td colspan="2">
                    <select id="RoughsType" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>
                </td>
                <td>
                    <select id="FiberDirection" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>

                </td>
                <td colspan="3">(<input type="text" id="KFGC" class="txt_short_line form-control required" />,<input type="text" id="KZGC" class="txt_short_line form-control required" />)	(<input type="text" id="CFGC" class="txt_short_line form-control required" />,<input type="text" id="CZGC" class="txt_short_line form-control required" />)<br />
                    <input type="text" id="RoughsSize" class="txt_line form-control required" />
                </td>
            </tr>
            <tr>
                <td colspan="3">计划产量	</td>
                <td colspan="3">
                    <input type="text" id="FJHCL" class="txt_line form-control required" />件	</td>
                <td colspan="2">投料产量</td>
                <td colspan="4">
                    <input type="text" id="TLCL" class="txt_line form-control required" />件</td>
                <td>状态</td>
                <td>
                    <select id="MaintainStatus" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>
                </td>
                <td colspan="3">零件标箱	
                </td>
                <td colspan="3">
                    <input type="text" id="Fcontent" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="3">计划重量	</td>
                <td colspan="3">
                    <input type="text" id="FJHZL" class="txt_line form-control required" />kg</td>
                <td colspan="2">工艺损耗</td>
                <td colspan="4">
                    <input type="text" id="TechWear" class="txt_line form-control required" />kg</td>
                <td>是否剪切</td>
                <td>
                    <select id="isJQ" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>
                </td>
                <td colspan="3">零件特征		
                </td>
                <td colspan="3">
                    <input type="text" id="Features" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td rowspan="4" class="center">
                    <label>材料</label></td>
                <td colspan="2">工艺卷料</td>
                <td colspan="4">
                    <input type="text" id="MaterialCode_YCL" class="txt_line form-control required" /></td>
                <td colspan="5">
                    <input type="text" id="MaterialSizes_YCL" class="txt_line form-control required" /></td>
                <td>是否作废	</td>
                <td>
                    <select id="MaintainStatus1" name="" class="form-control">
                        <option value="">--请选择--</option>
                    </select>
                </td>
                <td colspan="3">车间</td>
                <td colspan="3">
                    <input type="text" id="WorkShopName" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="2">工艺板料</td>
                <td colspan="4">
                    <input type="text" id="MaterialCode_BL" class="txt_line form-control required" /></td>
                <td colspan="5">
                    <input type="text" id="MaterialSizes_BL" class="txt_line form-control required" /></td>
                <td>开卷尺寸	</td>
                <td>张数</td>
                <td colspan="3">计划重量</td>
                <td colspan="3">总投料</td>
            </tr>
            <tr>
                <td colspan="2">实际卷料</td>
                <td colspan="4">
                    <input type="text" id="MaterialCode_SJJL" class="txt_line form-control required" /></td>
                <td colspan="5">
                    <input type="text" id="MaterialSizes_SJJL" class="txt_line form-control required" /></td>
                <td>
                    <input type="text" id="MaterialSizes_K" class="txt_short_line form-control required" />
                </td>
                <td>
                    <input type="text" id="Plane_KJZS" class="txt_short_line form-control required" />张</td>
                <td colspan="3">
                    <input type="text" id="Plane_KJZL" class="txt_short_line form-control required" />kg</td>
                <td colspan="3">
                    <input type="text" id="Plane_KJZS_Plane_SJZS" class="txt_short_line form-control required" />张</td>
            </tr>
            <tr>
                <td colspan="2">实际板料</td>
                <td colspan="4">
                    <input type="text" id="MaterialCode_SJBL" class="txt_line form-control required" /></td>
                <td colspan="5">
                    <input type="text" id="MaterialSizes_SJBL" class="txt_line form-control required" /></td>
                <td></td>

                <td>
                    <input type="text" id="Plane_SJZS" class="txt_short_line form-control required" />
                    张	</td>
                <td colspan="3">
                    <input type="text" id="Plane_SJZL" class="txt_short_line form-control required" />kg</td>
                <td colspan="3">
                    <input type="text" id=" Plane_KJZL_Plane_SJZL" class="txt_short_line form-control required" />kg</td>
            </tr>
            <tr>
                <td colspan="4"></td>
                <td>规格</td>
                <td colspan="2">实际</td>
                <td colspan="12">偏差原因说明 </td>
                <td>定额比较	</td>
            </tr>
            <tr>
                <td colspan="4">一张切几块</td>
                <td>
                    <input type="text" id="FYZJK_GY" class="txt_line form-control required" /></td>
                <td colspan="2">
                    <input type="text" id="FYZJK" class="txt_line form-control required" /></td>
                <td colspan="11">
                    <input type="text" id="FErrorK1" class="txt_line form-control required" />&nbsp;&nbsp;</td>
                <td>计划定额</td>
                <td>实际定额</td>
            </tr>
            <tr>
                <td colspan="4">一块切几个零件</td>
                <td>
                    <input type="text" id="FYKJJ_GY" class="txt_line form-control required" /></td>
                <td colspan="2">
                    <input type="text" id="FYKJJ" class="txt_line form-control required" /></td>
                <td colspan="11">
                    <input type="text" id="FErrorK2" class="txt_line form-control required" />
                    单件</td>
                <td>
                    <input type="text" id="DJJHDE" class="txt_line form-control required" />
                </td>
                <td>
                    <input type="text" id="DJSJDE" class="txt_line form-control required" />
                </td>
            </tr>
            <tr>
                <td colspan="4">一张切几个零件</td>
                <td>
                    <input type="text" id="FYZJK_GY_FYKJJ_GY" class="txt_line form-control required" /></td>
                <td colspan="2">
                    <input type="text" id="FYZJK_FYKJJ" class="txt_line form-control required" /></td>
                <td colspan="11">
                    <input type="text" id="FErrorK3" class="txt_line form-control required" />
                    一批</td>
                <td>
                    <input type="text" id="YPJHDE" class="txt_line form-control required" />
                </td>
                <td>
                    <input type="text" id="YPTLDE" class="txt_line form-control required" />
                </td>
            </tr>
            <tr>
                <td rowspan="7" class="center">
                    <label>相关部门填写</label></td>
                <td colspan="2">计划员</td>
                <td colspan="3">
                    <input type="text" id="FAuditingBy" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FAuditingDate1" class="txt_line form-control required" /></td>
                <td colspan="2">是否退料</td>
                <td colspan="5">
                    <input type="text" id="FIsReturn" class="txt_line form-control required" /></td>
                <td colspan="2">炉批号	</td>
                <td colspan="2">
                    <input type="text" id="LPH" class="txt_line form-control required" />
                </td>
            </tr>
            <tr>
                <td colspan="2">保管员</td>
                <td colspan="3">
                    <input type="text" id="FCGRY" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FCGRQ" class="txt_line form-control required" /></td>
                <td colspan="2">实发数</td>
                <td colspan="2">
                    <input type="text" id="FSHZS" class="txt_line form-control required" />张</td>
                <td colspan="3">
                    <input type="text" id="FSHZL" class="txt_line form-control required" />
                    kg</td>
                <td colspan="2">捆包号</td>
                <td colspan="2">
                    <input type="text" id="Fbatch" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="2">出库检查员</td>
                <td colspan="3">
                    <input type="text" id="FCKRY" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FCKRQ" class="txt_line form-control required" /></td>
                <td colspan="2">化验结果</td>
                <td colspan="4">
                    <input type="text" id="FCKJG" class="txt_line form-control required" />张</td>
                <td colspan="3">一级废料</td>
                <td>
                    <input type="text" id="FLGG1" class="txt_line form-control required" /></td>
                <td>
                    <input type="text" id="FLZL1" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="2">剪切收料员</td>
                <td colspan="3">
                    <input type="text" id="FSLRY" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FSLRQ" class="txt_line form-control required" /></td>
                <td colspan="2">实收数量</td>
                <td colspan="4">
                    <input type="text" id="FSLSL" class="txt_line form-control required" />张</td>
                <td colspan="3">二级废料</td>
                <td>
                    <input type="text" id="	FLGG2" class="txt_line form-control required" /></td>
                <td>
                    <input type="text" id="FLZL2" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="2">剪切检查员</td>
                <td colspan="3">
                    <input type="text" id="FJQRY" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FJQRQ" class="txt_line form-control required" /></td>
                <td colspan="2">检查结果</td>
                <td colspan="4">
                    <input type="text" id="FJQJG" class="txt_line form-control required" />张</td>
                <td colspan="3">三级废料</td>
                <td>
                    <input type="text" id="FLGG3" class="txt_line form-control required" /></td>
                <td>
                    <input type="text" id="FLZL3" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="2">车间收料员</td>
                <td colspan="3">
                    <input type="text" id="FCJRY" class="txt_line form-control required" /></td>
                <td colspan="4">
                    <input type="text" id="FCJRQ" class="txt_line form-control required" /></td>
                <td colspan="2">实收数量</td>
                <td colspan="4">
                    <input type="text" id="FCJSL" class="txt_line form-control required" />张</td>
                <td colspan="3">其他</td>
                <td>
                    <input type="text" id="YLGG1" class="txt_line form-control required" /></td>
                <td>
                    <input type="text" id="YLSL1" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td>备注说明：	</td>
                <td colspan="20">
                    <input type="text" id="FBZSM" class="txt_line form-control required" /></td>
            </tr>
            <tr>
                <td colspan="21"></td>
            </tr>
        </table>

    </div>
    <footer>
        <div class="r">
            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
            <a id="btn_search1" class="btn btn-primary center-block"><span class="glyphicon glyphicon-question-sign"></span>复制</a>
            <a id="butnGoAdd" class="btn btn-primary center-block"><span class="glyphicon glyphicon-plus-sign"></span>粘贴</a>
            <a id="butnDelete" class="btn btn-primary center-block"><span class="glyphicon glyphicon-gift"></span>工艺图</a>
            <a id="butnGoScheme" class="btn btn-primary center-block"><span class="glyphicon glyphicon-list-alt"></span>编辑图</a>
            <a id="butnGoInvalid" class="btn btn-primary center-block"><span class="glyphicon glyphicon-ok-sign"></span>签收</a>
            <a id="butnInStore" class="btn btn-primary center-block"><span class="glyphicon glyphicon-envelope"></span>库存</a>
            <a id="butnOutStore" class="btn btn-primary center-block"><span class="glyphicon glyphicon-bullhorn"></span>发货</a>
            <a id="butnPublish" class="btn btn-primary center-block"><span class="glyphicon glyphicon-share-alt"></span>发布</a>
            <a id="butnExport" class="btn btn-primary center-block"><span class="glyphicon glyphicon-export"></span>导出</a>
            <a id="butnReturn" class="btn btn-primary center-block" onclick="$.goBack()"><span class="glyphicon glyphicon-arrow-left"></span>返回</a>

        </div>
        <div clear></div>
    </footer>
</div>




